home *** CD-ROM | disk | FTP | other *** search
- #include <exec/exec.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include "work:romconf/doorheader.h"
- #define pm prompt
- #define sm sendmessage
- #define hk hotkey
- #define pu putuserstring
- #define gu getuserstring
- extern struct JHMessage *Jhmsg;
- char temp[2];
- char modem[100];
- void LastCommand(void);
- void end(void);
- main(int argc,char *argv[])
- {
- if(argc!=2)
- {
- printf("/X TERM version 1.0, written by Joseph Hodge\n");
- printf("\n");
- exit(0);
- }
- Register(argv[1][0]-'0');
- sm(" .--------------------------------------------------------------------------.",1);
- sm(" | Ami-Express TERM Version 1.0 Written by ByteMaster |",1);
- sm(" | /X Development Team - The Silent Achievers |",1);
- sm(" `--------------------------------------------------------------------------'",1);
- sm("",1);
-
- temp[1]='\0';
- pu("",BB_PURGELINEEND);
- Delay(10L);
- pu("",BB_DROPDTR);
- Delay(30L);
- while(1)
- {
- hk("",temp);
- // if(Jhmsg->Command)
- if(temp[0]==10 || temp[0]==13){ ConOnly("",1); if(Jhmsg->Command)SerOnly("",1); } else
- {
- ConOnly(temp,0);
- if(Jhmsg->Command)
- SerOnly(temp,0);
- }
- }
- }
-
- void LastCommand(void)
- {
- sm("",1);
- }
-
- void end(void)
- {
- exit(0);
- }